﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GIMS.MODEL;
using KPIS.GERP.GIMS.IBLL;
using KPIS.GERP.GIMS.IDAL;
using KPIS.GERP.GIMS.DALFactory;
using KPIS.DBM;

namespace KPIS.GERP.GIMS.BLL
{
    public class PrePurchaseRequestRouteHistoryBLL : IBLLPrePurchaseRequestRouteHistory
    {
        private static readonly IDALPrePurchaseRequestRouteHistory dal = DataAccess.CreatePrePurchaseRequestRouteHistory();
        public void Insert(PrePurchaseRequestRouteHistoryInfo info)
        {
            dal.Insert(info);
        }

        public void Insert(IList<PrePurchaseRequestRouteHistoryInfo> ListInfo, IDBManager dbManagerTrans)
        {
            dal.Insert(ListInfo, dbManagerTrans);
        }

        public void Update(PrePurchaseRequestRouteHistoryInfo info)
        {
            dal.Update(info);
        }

        public void Delete(PrePurchaseRequestRouteHistoryInfo info)
        {
            dal.Delete(info);
        }

        public IList<PrePurchaseRequestRouteHistoryInfo> Select()
        {
            return dal.Select();
        }

        public int GetNextRevisionNo(IDBManager dbManagerTrans,int PprSeq)
        {
            return dal.GetNextRevisionNo(dbManagerTrans, PprSeq);
        }
    }
}
